package c0907m.group2.aitsm.core.entity;

import java.util.Date;

/**
 * Author: LongDH
 * Date: 4/27/11
 * Time: 2:48 PM
 * <p/>
 * Contain information of Schedule table's row.
 */
public class ScheduleInfo {
    private int id;
    private int subjectId;
    private int classId;
    private int userId;
    private Date startTime;
    private Date endTime;
    private boolean active;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(int subjectId) {
        this.subjectId = subjectId;
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    @Override
    public String toString() {
        return "ScheduleInfo{" +
                "id=" + id +
                ", subjectId=" + subjectId +
                ", classId=" + classId +
                ", userId=" + userId +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", active=" + active +
                '}';
    }
}
